package org.apache.ws.axis2;

import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;
import org.apache.ws.axis2.SimpleServiceStub.IsConnectResponse;

public class AccesWebservice {
	
	public boolean getIsConnected(){
		IsConnectResponse response = null;
		
		try {
			SimpleServiceStub stub = new SimpleServiceStub();
			
			response  = stub.isConnect();
			
		} catch (AxisFault e) {
			e.printStackTrace();
		} catch (RemoteException e){
			e.printStackTrace();
		}
		
		return response.get_return();
	}
}
